package com.zjut.domain;

import lombok.Data;

@Data
public class FinalQuestions implements Comparable<FinalQuestions> {
    private Integer id;
    private String question;
    private String answer;
    private String type;
    private Double difficulty;
    private Integer chapter;
    private Integer section;
    private Integer year;
    private String knowledge;
    private char requirement;
    private Double score;

    @Override
    public int compareTo(FinalQuestions other) {
        return Double.compare(this.difficulty, other.difficulty);
    }
}
